home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 December / CHIPNET Aralık 1997.iso / www / ie4eng / ieak4.cab / random.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-05  |  301 b   |  11 lines

  1. #include <stdlib.h>
  2. #include <ctype.h>
  3. #include "random.h"
  4. //Select a random number generator not known by outsiders
  5. //Anyone who knows the random number generator can guess the 
  6. //session handles of the serer and violate he security.
  7. UINT random(UINT seed)
  8. {
  9.     srand(seed);
  10.     return rand();
  11. }